#define _CRT_SECURE_NO_WARNINGS 1

class Solution {
public:
    vector<int> rowAndMaximumOnes(vector<vector<int>>& mat) {
        vector<int> res(2, 0);
        for (int i = 0; i < mat.size(); i++)
        {
            int k = 0;
            for (int j = 0; j < mat[i].size(); j++)
            {
                if (mat[i][j] == 1)
                    ++k;
            }
            if (k > res[1])
            {
                res[0] = i;
                res[1] = k;
            }
        }
        return res;
    }
};